<template>
  <div>
    <!--面包屑导航-->
    <Breadcrumb></Breadcrumb>
    <div class="content">
      订单合同: <el-button @click="dialogVisible=true">查看合同</el-button>
      <!--PDF打印-->
    </div>
    <el-dialog
      title="查看合同内容"
      :visible.sync="dialogVisible"
      width="60%"
      :before-close="handleClose"
    >
      <VuePdf></VuePdf>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
import VuePdf from './vuePdf.vue'
export default {
    components:{
        VuePdf
    },
    data(){
        return{
            dialogVisible:false
        }
    },
    method:{
        handleClose(){
            this.dialogVisible=false
        }
    }
};
</script>

<style>
.content {
  background: #fff;
  padding: 20px;
}
</style>